package com.twu.biblioteca;

/**
 * Created by Lukas on 1/10/14.
 */
public class Media {
    private Boolean rented;
    private User rentedTo;

    public Media() {
        rented = false;
    }

    public Boolean isRented(){
        return rented;
    }

    public String status(){
        return  this.isRented() ? "RENTED" : "AVAILABLE";
    }

    public void rent(User renter){
        rented = true;
        rentedTo = renter;
    }

    public User getRenter(){
        return rentedTo;
    }

    public void giveBack(){
        rented = false;
        rentedTo = null;
    }

    public String mediaStatus() {
        return null;
    }

    public String getTitle(){
        return null;
    }

    public String checkoutReturnValue() {
        return null;
    }

    public String returnMediaValue() {
        return null;
    }

    public String mediaTitles() {
        return null;
    }
}
